import './interfaces';
import count from './atom/db/count';

async function atom(msg: Message, headers: IHeaders) {
	const systemid = '';
	const { exec, prepare } = count(headers.actionid, headers.sessionid, headers.spaceid, systemid);
	prepare('@tablename1', {});
	prepare('@tablename2', {});
	const [n1, n2] = await exec();
	return n1 > n2 ? 'gt' : 'lt';
}
